public class Mainclass
{
    public static void main(String[] args)
    {
        FamilyPerson father = new FamilyPerson();
        father.setName("m");
        father.setSurName("x");
        FamilyPerson mather = new FamilyPerson();
        mather.setName("z");
        mather.setSurName("j");
        FamilyPerson sonOne = new FamilyPerson();
        sonOne.setName("sr");
        sonOne.setSurName("x");
        FamilyPerson sonTwo = new FamilyPerson();

        father.print();
        mather.print();
        sonOne.print();
        sonTwo.print();

    }
}

class FamilyPerson
{
    private String surName;
    private String name;

    public void setName(String name) {
        this.name = name;
    }

    public void setSurName(String surName) {
        this.surName = surName;
    }

    public void print()
    {
        System.out.println("surName:" + surName + ", name:" + name);
    }

}
